package com.feicheng.iou.pojo.login;

import com.feicheng.iou.entity.Role;
import com.feicheng.iou.entity.User;
import com.feicheng.iou.entity.UserRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.List;
/**
 *
 *   <p>
 *    封装用户信息及其角色ID集合
 *   </p>
 *
 * @author wuweinan
 * @since 2021-7-28
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class UserRolePOJO  {

    private User user;    //用户
    private List<UserRole> userRoleList;  //用户角色集合

}
